const ae04ee7ce9eb4af2a43a7fdf80a8ac23 = require('electron')

ae04ee7ce9eb4af2a43a7fdf80a8ac23.contextBridge.exposeInMainWorld('appBridge', {
    onEmit: (eventName, msgInfo) => {
        ae04ee7ce9eb4af2a43a7fdf80a8ac23.ipcRenderer.send("__PUBLISH_PUSH__", eventName, msgInfo)
    },
    onListen: (eventName, fn) => {
        ae04ee7ce9eb4af2a43a7fdf80a8ac23.ipcRenderer.on(eventName, (event, msgInfo) => fn(msgInfo));
    }
})



const { contextBridge, ipcRenderer, shell } = require('electron')

contextBridge.exposeInMainWorld('api', {
    openApp: (appPath) => {
        shell.openExternal("file://" + appPath)
    }
})
